package com.sg.service.impl;

import com.sg.bean.BusinessState;
import com.sg.dao.BusinessStateDao;
import com.sg.service.BusinessStateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zh
 * 商家状态业务逻辑实现
 */
@Service
public class BusinessStateServiceImpl implements BusinessStateService {
    @Autowired
    BusinessStateDao businessStateDao;
    @Override
    public List<BusinessState> findAll() {
        return businessStateDao.findAll();
    }

    @Override
    public BusinessState findById(int comStateId) {
        return businessStateDao.findById(comStateId);
    }
}
